﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/8/6 星期二 22:51:43
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;
using Sector7.Framework.Enums;

namespace Sector7.Medical.EntityType
{
    /// <summary>
    /// 处方项实体类
    /// </summary>
    [Serializable()]
    [DataContract]
    public class M7_RecipeItem : EntityBase
    {
        #region Accessor
        /// <summary>
        /// 获取或设置处方项编号
        /// </summary>
        [DataMember]
        [DBField(DBFieldType.PrimaryKey)]
        public int ItemId { get; set; }

        /// <summary>
        /// 获取或设置处方编号
        /// </summary>
        [DataMember]
        [DBField]
        public long RecipeId { get; set; }

        /// <summary>
        /// 获取或设置药品编号
        /// </summary>
        [DataMember]
        [DBField]
        public long DrugId { get; set; }
        
        /// <summary>
        /// 获取或设置药品规格编号
        /// </summary>
        [DataMember]
        [DBField]
        public long SpecId { get; set; }

        /// <summary>
        /// 获取或设置数量
        /// </summary>
        [DataMember]
        [DBField]
        public decimal Number { get; set; }

        /// <summary>
        /// 获取或设置每次用量
        /// </summary>
        [DataMember]
        [DBField]
        public decimal UsageNumber { get; set; }

        /// <summary>
        /// 获取或设置频次编码
        /// </summary>
        [DataMember]
        [DBField]
        public string FrequencyId { get; set; }

        /// <summary>
        /// 获取或设置给药途径编码
        /// </summary>
        [DataMember]
        [DBField]
        public string ApproachId { get; set; }
        #endregion

        #region Extension
        /// <summary>
        /// 获取或设置药品信息
        /// </summary>
        [DataMember]
        public M7_Drug Drug { get; set; }
        #endregion
    }
}
